﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DongFangGuoKai.WMSPlatform.Domain.Models
{
    ///<summary>
    ///物料批次表
    ///</summary>
    [SugarTable("DBO.t_MaterialKey")]
    public partial class t_MaterialKey
    {
        public t_MaterialKey()
        {


        }
        /// <summary>
        /// Desc:主键
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:物料Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public long? MaterialId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialCode { get; set; }

        /// <summary>
        /// Desc:物料名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialName { get; set; }

        /// <summary>
        /// Desc:批次号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? BatchNO { get; set; }

        /// <summary>
        /// Desc:质量状态：0-待检；1-合格；2-不合格；
        /// Default:1
        /// Nullable:True
        /// </summary>           
        public int? QualityState { get; set; }

        /// <summary>
        /// Desc:供应商Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? SupplierId { get; set; }

        /// <summary>
        /// Desc:供应商
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? SupplierName { get; set; }

        /// <summary>
        /// Desc:生产厂家
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ProduceFactory { get; set; }

        /// <summary>
        /// Desc:生产日期
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ProductDate { get; set; }

        /// <summary>
        /// Desc:出厂日期
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? OutFactoryDate { get; set; }

        /// <summary>
        /// Desc:有效期
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ExpireDate { get; set; }

        /// <summary>
        /// Desc:质检日期
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? QADate { get; set; }

        /// <summary>
        /// Desc:货主Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? OwnerId { get; set; }

        /// <summary>
        /// Desc:货主
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? OwnerName { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:DateTime.Now
        /// Nullable:True
        /// </summary>           
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// Desc:部门编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? DeptCode { get; set; }

        /// <summary>
        /// Desc:部门名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? DeptName { get; set; }

        /// <summary>
        /// Desc:合同号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ContractNO { get; set; }

        /// <summary>
        /// Desc:物料凭证号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MBLNR { get; set; }

        /// <summary>
        /// Desc:物料凭证年度
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MJAHR { get; set; }

        /// <summary>
        /// Desc:物料凭证行项目
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ZEILE { get; set; }

        /// <summary>
        /// Desc:采购订单号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? PurOrderNO { get; set; }

        /// <summary>
        /// Desc:采购订单行号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? PurOrderLineNO { get; set; }

        /// <summary>
        /// Desc:采购订单行项目类型：0-无；1-L外协；2-U转储;3-正常采购
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public int? PurOrderLineType { get; set; }

        /// <summary>
        /// Desc:生产订单号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ProOrderNO { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? OutOrderNO { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? WarehouseId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? WarehouseCode { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? WarehouseName { get; set; }

    }
}
